Package com.cisco.pt.ipc.sim.pdu.impl
Class OSPFv3HelloPacketImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCDataImpl
com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
com.cisco.pt.ipc.sim.pdu.impl.PduImpl
com.cisco.pt.ipc.sim.pdu.impl.OSPFPacketImpl
com.cisco.pt.ipc.sim.pdu.impl.OSPFv3HelloPacketImpl
- All Implemented Interfaces:
IPCData,OSPFPacket,OSPFv3HelloPacket,Pdu,Signal
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected IPAddressprotected Shortprotected IPAddressprotected Shortprotected intprotected intprotected ByteFields inherited from class com.cisco.pt.ipc.sim.pdu.impl.OSPFPacketImpl
areaId, authenticationType, checkSum, length, routerId, sequence, typeCode, versionFields inherited from class com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
fieldNames, fieldTable, signalType, typeTable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidencodeTypeAndPayload(EncodedBuffer buffer) getFieldType(String fieldName) intintvoidpduRead(EncodedBuffer buffer) voidread(EncodedBuffer buffer) Reads this object from an EncodedBuffer of raw datavoidsetBackupDesignatedRouter(IPAddress backupDesignatedRouter) voidsetDeadInterval(Short deadInterval) voidsetDesignatedRouter(IPAddress designatedRouter) voidsetHelloInterval(Short helloInterval) voidsetInterfaceId(int interfaceId) voidsetNeighbors(List<IPAddress> neighbors) voidsetOptionV3(int optionV3) voidsetPriority(Byte priority) Methods inherited from class com.cisco.pt.ipc.sim.pdu.impl.OSPFPacketImpl
getAreaId, getAuthenticationType, getCheckSum, getLength, getRouterId, getSequence, getTypeCode, getVersion, setAreaId, setAuthenticationType, setCheckSum, setLength, setRouterId, setSequence, setTypeCode, setVersionMethods inherited from class com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
getFieldValueMethods inherited from class com.cisco.pt.ipc.impl.IPCDataImpl
checkType, pduReadBoolean, pduReadByte, pduReadDouble, pduReadFloat, pduReadInt, pduReadIPAddress, pduReadIPCData, pduReadIPV6Address, pduReadLong, pduReadMACAddress, pduReadPair, pduReadQString, pduReadShort, pduReadString, pduReadUUID, pduReadVector, readBoolean, readByte, readDouble, readFloat, readInt, readIPAddress, readIPCData, readIPV6Address, readLong, readMACAddress, readPair, readQString, readShort, readString, readUUID, readVectorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.sim.pdu.OSPFPacket
getAreaId, getAuthenticationType, getCheckSum, getLength, getRouterId, getSequence, getTypeCode, getVersion, setAreaId, setAuthenticationType, setCheckSum, setLength, setRouterId, setSequence, setTypeCode, setVersionMethods inherited from interface com.cisco.pt.ipc.sim.pdu.Signal
getFieldValue
-
Field Details
-
interfaceId
protected int interfaceId -
priority
-
optionV3
protected int optionV3 -
helloInterval
-
deadInterval
-
designatedRouter
-
backupDesignatedRouter
-
neighbors
-
-
Constructor Details
-
OSPFv3HelloPacketImpl
public OSPFv3HelloPacketImpl()
-
-
Method Details
-
getInterfaceId
public int getInterfaceId()- Specified by:
getInterfaceIdin interfaceOSPFv3HelloPacket- Returns:
- int Returns a int
-
setInterfaceId
public void setInterfaceId(int interfaceId) - Specified by:
setInterfaceIdin interfaceOSPFv3HelloPacket- Parameters:
interfaceId- Takes in a parameter of interfaceId
-
getPriority
- Specified by:
getPriorityin interfaceOSPFv3HelloPacket- Returns:
- Byte Returns a Byte
-
setPriority
- Specified by:
setPriorityin interfaceOSPFv3HelloPacket- Parameters:
priority- Takes in a parameter of priority
-
getOptionV3
public int getOptionV3()- Specified by:
getOptionV3in interfaceOSPFv3HelloPacket- Returns:
- int Returns a int
-
setOptionV3
public void setOptionV3(int optionV3) - Specified by:
setOptionV3in interfaceOSPFv3HelloPacket- Parameters:
optionV3- Takes in a parameter of optionV3
-
getHelloInterval
- Specified by:
getHelloIntervalin interfaceOSPFv3HelloPacket- Returns:
- Short Returns a Short
-
setHelloInterval
- Specified by:
setHelloIntervalin interfaceOSPFv3HelloPacket- Parameters:
helloInterval- Takes in a parameter of helloInterval
-
getDeadInterval
- Specified by:
getDeadIntervalin interfaceOSPFv3HelloPacket- Returns:
- Short Returns a Short
-
setDeadInterval
- Specified by:
setDeadIntervalin interfaceOSPFv3HelloPacket- Parameters:
deadInterval- Takes in a parameter of deadInterval
-
getDesignatedRouter
- Specified by:
getDesignatedRouterin interfaceOSPFv3HelloPacket- Returns:
- IPAddress Returns a IPAddress
-
setDesignatedRouter
- Specified by:
setDesignatedRouterin interfaceOSPFv3HelloPacket- Parameters:
designatedRouter- Takes in a parameter of designatedRouter
-
getBackupDesignatedRouter
- Specified by:
getBackupDesignatedRouterin interfaceOSPFv3HelloPacket- Returns:
- IPAddress Returns a IPAddress
-
setBackupDesignatedRouter
- Specified by:
setBackupDesignatedRouterin interfaceOSPFv3HelloPacket- Parameters:
backupDesignatedRouter- Takes in a parameter of backupDesignatedRouter
-
getNeighbors
- Specified by:
getNeighborsin interfaceOSPFv3HelloPacket- Returns:
- List<IPAddress> Returns a List<IPAddress>
-
setNeighbors
- Specified by:
setNeighborsin interfaceOSPFv3HelloPacket- Parameters:
neighbors- Takes in a parameter of neighbors
-
getFieldType
- Overrides:
getFieldTypein classOSPFPacketImpl
-
read
Reads this object from an EncodedBuffer of raw data- Specified by:
readin interfaceIPCData- Overrides:
readin classOSPFPacketImpl- Parameters:
buffer- The EncodedBuffer that contains the raw data from which to construct this object
-
pduRead
- Specified by:
pduReadin interfaceSignal- Overrides:
pduReadin classOSPFPacketImpl
-
getOrderedFieldNames
- Specified by:
getOrderedFieldNamesin interfaceSignal- Overrides:
getOrderedFieldNamesin classOSPFPacketImpl
-
encodeTypeAndPayload
- Specified by:
encodeTypeAndPayloadin interfaceSignal- Overrides:
encodeTypeAndPayloadin classOSPFPacketImpl
-